package com.currency.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "wyt_arrears_detail")
public class WytArrearsDetailPojo {
    public static final String ARREARS_TYPE_D = "D";
    public static final String ARREARS_TYPE_A = "A";

    @ApiModelProperty(value = "欠款明细扼要id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "交易用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "交易月份，格式：yyyy-DD")
    @TableField(value = "arrears_year_month")
    private String arrearsYearMonth;

    @ApiModelProperty(value = "欠款交易金额 ， 单位 分")
    @TableField(value = "amount")
    private Integer amount;

    @ApiModelProperty(value = "欠款交易类型， D - 欠款  A - 还款")
    @TableField(value = "arrears_type")
    private String arrearsType;

    @ApiModelProperty(value = "交易描述")
    @TableField(value = "message")
    private String message;

    @ApiModelProperty(value = "关联运单ID")
    @TableField(value = "order_id")
    private String orderId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_datetime")
    private Date createDatetime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_datetime")
    private Date updateDatetime;

}
